import request from '@/utils/request'
import { SET_CHANNELS } from '../actionTypes'
export const getChannelList = () => {
  return async (dispatch) => {
    const res = await request.get('/channels')
    console.log(res, '123456789')
    dispatch({
      type: SET_CHANNELS,
      payload: res.data.channels
    })
  }
}
